﻿using BLL;
using Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MachineStatusClient
{
    public partial class AddForm : Form
    {
        // 在类中添加计时器变量
        private System.Windows.Forms.Timer inactivityTimer;
        BContentToSqlServer bts = new BContentToSqlServer();
        private string MachindNo = ConfigurationManager.AppSettings["MachineId"];
        private Dictionary<Control, string> controlToPropertyMap = new Dictionary<Control, string>();
        //private Dictionary<string, string> symbolToTextMap = new Dictionary<string, string>();
        // 添加符号到文本的映射字典
        private Dictionary<string, string> symbolToTextMap = new Dictionary<string, string>
        {
           { "O", "良好" },
           { "X", "待修" },
           { "Δ", "停机未作业" }
        };

        // 定义控件分组
        private List<Control> dailyCheckControls;
        private List<Control> weeklyCheckControls;
        private List<Control> monthlyCheckControls;
        private List<Control> AnyCheckControls;
        public AddForm()
        {
            InitializeComponent();

            // 初始化控件分组
            InitializeControlGroups();
            // 为所有 TextBox 添加 Enter 事件处理程序
            foreach (Control control in panel1.Controls)
            {
                if (control is TextBox textBox)
                {
                    textBox.Enter += TextBox_Enter;
                }
            }

            // 初始化不活动计时器
            inactivityTimer = new System.Windows.Forms.Timer();
            inactivityTimer.Interval = 300000; // 5分钟（300,000毫秒）
            inactivityTimer.Tick += InactivityTimer_Tick;
            // 初始化控件与模型属性的映射
            controlToPropertyMap = new Dictionary<Control, string>
            {
                { comboBox1, "JJTZKG" },
                { comboBox2, "JSQ" },
                { comboBox3, "RJJM" },
                { comboBox4, "XJTX" },
                { comboBox5, "FGJP" },
                { comboBox6, "ZDMD" },
                { comboBox7, "THJC" },
                { comboBox8, "BTHJC" },
                { comboBox9, "THZZ" },
                { comboBox10, "JZQG" },
                { comboBox11, "AQMZZ" },
                { comboBox12, "JTBMZW" },
                { comboBox13, "GQGYZZ" },
                { comboBox14, "JTSFLQ" },
                { comboBox15, "YSKQ" },
                { comboBox16, "DZDJ" },
                { comboBox17, "SDZH" },
                { comboBox18, "XRHBW" },
                { comboBox19, "ZDP" },
                { comboBox20, "TRCDBF" },
                { comboBox21, "PD" },
                { comboBox22, "LDJC" },
                { comboBox23, "DJType" },
                { textBox1, "QYB" },
                //{ comboBox24, "CZRY" },
                //{ comboBox25, "ZZ" },
                //{ comboBox26, "JXBQ" }
            // 根据需要添加其他控件的映射
             };
            //// 添加符号到文本的映射字典
            //symbolToTextMap = new Dictionary<string, string>
            //{
            //    { "O", "良好" },
            //    { "X", "待修" },
            //    { "Δ", "停机未作业" }
            // };
            // 为所有ComboBox设置选项
            var comboBoxes = new List<ComboBox>
            {
            comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6, comboBox7,
            comboBox8, comboBox9, comboBox10, comboBox11, comboBox12, comboBox13,
            comboBox14, comboBox15, comboBox16, comboBox17, comboBox18, comboBox19,
            comboBox20, comboBox21, comboBox22
            };

            foreach (var cb in comboBoxes)
            {
                cb.Items.AddRange(new object[] {"O", "X", "Δ" });
                cb.DropDownStyle = ComboBoxStyle.DropDownList;
                cb.SelectedIndex = 0;
                //cb.Text = "请选择";
            }
            // 添加下拉选项
            comboBox23.Items.AddRange(new object[] { "日", "周", "月" });

            //// 设为只读下拉
            comboBox23.DropDownStyle = ComboBoxStyle.DropDownList;

            // 设置默认项
            comboBox23.SelectedIndex = 0;
            comboBox23.SelectedIndexChanged += ComboBox23_SelectedIndexChanged;
            //操作人员
            List<CZRYModel> czryList = bts.GetCZRY(MachindNo);
            // 检查返回结果
            if (czryList != null && czryList.Count > 0)
            {
                // 使用LINQ提取usr_name字段并转换为数组
                comboBox24.Items.AddRange(czryList.Select(x => x.usr_name).ToArray());
            }
            else
            {
                //MessageBox.Show("没有可用数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox24.Items.Clear(); // 清空原有项
            }
            //组长
            List<ZZModel> zzList = bts.GetZZ(MachindNo);
            // 检查返回结果
            if (zzList != null && zzList.Count > 0)
            {
                // 使用LINQ提取usr_name字段并转换为数组
                
                comboBox25.Items.AddRange(zzList.Select(x => x.usr_name).ToArray());
                comboBox25.Items.Add("");
            }
            else
            {
                //MessageBox.Show("没有可用数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox25.Items.Clear(); // 清空原有项
            }

            List<SBBYModel> sbbyList = bts.GetSBBY(MachindNo);
            // 检查返回结果
            if (sbbyList != null && sbbyList.Count > 0)
            {
                // 使用LINQ提取usr_name字段并转换为数组
                comboBox26.Items.AddRange(sbbyList.Select(x => x.usr_name).ToArray());
                comboBox26.Items.Add("");
            }
            else
            {
                //MessageBox.Show("没有可用数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox26.Items.Clear(); // 清空原有项
            }

            this.MinimizeBox = false; // 隐藏最小化按钮
            this.MaximizeBox = false; // 隐藏最大化按钮
            this.StartPosition = FormStartPosition.CenterScreen;

            // 初始化控件状态
            UpdateControlsByCheckType("日");
        }

        

        // 初始化控件分组
        private void InitializeControlGroups()
        {
            dailyCheckControls = new List<Control>
            {
                comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6, comboBox7,
                comboBox8, comboBox9, comboBox10, comboBox11, comboBox12, comboBox13,
                comboBox14, comboBox15, comboBox16,
                textBox1,comboBox24
            };

            weeklyCheckControls = new List<Control>
            {
                comboBox17, comboBox18, comboBox19
            };

            monthlyCheckControls = new List<Control>
            {
                comboBox20, comboBox21, comboBox22
                //comboBox25, comboBox26
            };

            AnyCheckControls = new List<Control>
            {
                comboBox25, comboBox26
            };
        }

        // 根据点检类型更新控件状态
        private void UpdateControlsByCheckType(string checkType)
        {
            // 重置所有控件为可用状态
            SetControlsState(dailyCheckControls, true);
            SetControlsState(weeklyCheckControls, true);
            SetControlsState(monthlyCheckControls, true);

            // 根据点检类型设置控件状态
            if (checkType == "日")
            {
                // 日点检：禁用周和月点检控件，并清空其值
                SetControlsState(weeklyCheckControls, false);
                SetControlsState(monthlyCheckControls, false);
                ClearControls(weeklyCheckControls);
                ClearControls(monthlyCheckControls);
            }
            else if (checkType == "周")
            {
                // 周点检：禁用月点检控件，并清空其值
                SetControlsState(monthlyCheckControls, false);
                ClearControls(monthlyCheckControls);
            }
            // 月点检：所有控件都可用
        }

        // 设置控件状态
        private void SetControlsState(List<Control> controls, bool enabled)
        {
            foreach (var control in controls)
            {
                control.Enabled = enabled;
            }
        }

        // 清空控件值
        private void ClearControls(List<Control> controls)
        {
            foreach (var control in controls)
            {
                if (control is ComboBox comboBox)
                {
                    comboBox.SelectedIndex = 0;
                }
                else if (control is TextBox textBox)
                {
                    textBox.Text = string.Empty;
                }
            }
        }

        // 点检类型变更事件
        private void ComboBox23_SelectedIndexChanged(object sender, EventArgs e)
        {
            string checkType = comboBox23.SelectedItem?.ToString();
            UpdateControlsByCheckType(checkType);
        }

        // 计时器触发事件
        private void InactivityTimer_Tick(object sender, EventArgs e)
        {
            this.Close();
        }

        // 重置计时器的方法
        private void ResetInactivityTimer()
        {
            inactivityTimer.Stop();
            inactivityTimer.Start();
        }

        // 窗体加载事件
        private void AddForm_Load(object sender, EventArgs e)
        {
            this.Size = new Size(600, 850);

            // 启动计时器
            inactivityTimer.Start();

            // 添加事件监听器
            this.MouseMove += ActivityDetected;
            this.KeyPress += ActivityDetected;
            AttachActivityEvents(this);

            //comboBox24.DropDown += ComboBox24_DropDown;
            //comboBox25.DropDown += ComboBox25_DropDown;
            //comboBox26.DropDown += ComboBox26_DropDown;
        }


        private void ComboBox24_DropDown(object sender, EventArgs e)
        {
            comboBox24.Items.Clear();
            //操作人员
            List<CZRYModel> czryList = bts.GetCZRY(MachindNo);
            // 检查返回结果
            if (czryList != null && czryList.Count > 0)
            {
                // 使用LINQ提取usr_name字段并转换为数组
                comboBox24.Items.AddRange(czryList.Select(x => x.usr_name).ToArray());
            }
            else
            {
                //MessageBox.Show("没有可用数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox24.Items.Clear(); // 清空原有项
            }
        }

        private void ComboBox25_DropDown(object sender, EventArgs e)
        {
            comboBox25.Items.Clear();
            //组长
            List<ZZModel> zzList = bts.GetZZ(MachindNo);
            // 检查返回结果
            if (zzList != null && zzList.Count > 0)
            {
                // 使用LINQ提取usr_name字段并转换为数组
                comboBox25.Items.AddRange(zzList.Select(x => x.usr_name).ToArray());
            }
            else
            {
                //MessageBox.Show("没有可用数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox25.Items.Clear(); // 清空原有项
            }
        }

        private void ComboBox26_DropDown(object sender, EventArgs e)
        {
            comboBox26.Items.Clear();
            //设备保养
            List<SBBYModel> sbbyList = bts.GetSBBY(MachindNo);
            // 检查返回结果
            if (sbbyList != null && sbbyList.Count > 0)
            {
                // 使用LINQ提取usr_name字段并转换为数组
                comboBox26.Items.AddRange(sbbyList.Select(x => x.usr_name).ToArray());
            }
            else
            {
                //MessageBox.Show("没有可用数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox26.Items.Clear(); // 清空原有项
            }
        }
        // 监听用户活动
        private void ActivityDetected(object sender, EventArgs e)
        {
            ResetInactivityTimer();
        }

        // 递归绑定所有控件的事件
        private void AttachActivityEvents(Control parent)
        {
            parent.MouseMove += ActivityDetected;
            parent.Click += ActivityDetected;
            parent.TextChanged += ActivityDetected;

            foreach (Control child in parent.Controls)
            {
                AttachActivityEvents(child);
            }
        }
        private void TextBox_Enter(object sender, EventArgs e)
        {
            // 调用系统屏幕键盘
            ShowOnScreenKeyboard();
        }
        private void ShowOnScreenKeyboard()
        {
            try
            {
                // 检查屏幕键盘是否已经在运行
                var oskProcess = Process.GetProcessesByName("osk").FirstOrDefault();

                if (oskProcess == null)
                {
                    // 启动屏幕键盘
                    Process.Start("osk.exe");
                }
                else
                {
                    // 如果已经在运行，将其带到前台
                    SetForegroundWindow(oskProcess.MainWindowHandle);
                }
            }
            catch (Exception ex)
            {
                // 如果无法启动屏幕键盘，可以尝试其他方法
                try
                {
                    // 尝试使用 tabtip (Windows 10 触摸键盘)
                    Process.Start("tabtip.exe");
                }
                catch
                {
                    MessageBox.Show("无法启动屏幕键盘: " + ex.Message);
                }
            }
        }

        // 导入 Windows API 函数用于将窗口带到前台
        [DllImport("user32.dll")]
        private static extern bool SetForegroundWindow(IntPtr hWnd);
        // 窗体关闭时停止计时器
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            inactivityTimer.Stop();
            base.OnFormClosing(e);

            // 尝试关闭屏幕键盘
            try
            {
                // 关闭 TabTip (Windows 10 触摸键盘)
                foreach (var process in Process.GetProcessesByName("TabTip"))
                {
                    process.Kill();
                }

                // 关闭传统屏幕键盘
                foreach (var process in Process.GetProcessesByName("osk"))
                {
                    process.Kill();
                }
            }
            catch
            {
                // 忽略关闭过程中的任何错误
            }
        }
        //private void AddForm_Load(object sender, EventArgs e)
        //{
        //    this.Size = new Size(500, 800);
        //}

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }
        //取消按钮
        private void button1_Click(object sender, EventArgs e)
        {
            // 关闭当前窗体
            this.Close();
        }

        //保存按钮
        private void button2_Click(object sender, EventArgs e)
        {
            // 获取点检类型
            string checkType = comboBox23.SelectedItem?.ToString();

            // 根据点检类型确定需要验证的控件
            List<Control> controlsToValidate = new List<Control>(dailyCheckControls);

            if (checkType == "周")
            {
                controlsToValidate.AddRange(weeklyCheckControls);
            }
            else if (checkType == "月")
            {
                controlsToValidate.AddRange(weeklyCheckControls);
                controlsToValidate.AddRange(monthlyCheckControls);
            }
            // 验证控件
            if (string.IsNullOrWhiteSpace(textBox1.Text))
            {
                MessageBox.Show("请填写气压表");
                return;
            }
            if (comboBox24.SelectedIndex < 0) // 假设0是"请选择"或未选择的状态
            {
                MessageBox.Show("请选择操作人员");
                return;
            }
            //foreach (var control in controlsToValidate)
            //{
            //    //if (control is ComboBox cb && cb.SelectedIndex == 0)
            //    //{
            //    //    MessageBox.Show("请填写当前所需的点检项");
            //    //    return;
            //    //}
            //    //else if (control is TextBox tb && string.IsNullOrWhiteSpace(tb.Text))
            //    //{
            //    //    MessageBox.Show("请填写当前所需的点检项");
            //    //    return;
            //    //}

            //    if (control is ComboBox cb && cb.Name == "comboBox24" && cb.SelectedIndex < 0)
            //    {
            //        MessageBox.Show("请填写当前所需的点检项");
            //        return;
            //    }
            //    // 验证所有 TextBox
            //    else if (control is TextBox tb && string.IsNullOrWhiteSpace(tb.Text))
            //    {
            //        MessageBox.Show("请填写当前所需的点检项");
            //        return;
            //    }
            //}

            var data = new DJDataModel();
            data.MachineId = MachindNo;
            // 1. 设置当前时间
            data.GetTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            data.DJDate = DateTime.Now.ToString("yyyy-MM-dd");
            data.DJType = checkType;
            data.CZRY = comboBox24.SelectedItem?.ToString();
            data.ZZ = comboBox25.SelectedItem?.ToString();
            data.JXBQ = comboBox26.SelectedItem?.ToString();
            // 2. 遍历控件并赋值给模型
            foreach (var control in controlsToValidate)
            {
                if (controlToPropertyMap.TryGetValue(control, out string propertyName))
                {
                    var property = typeof(DJDataModel).GetProperty(propertyName);
                    if (property != null)
                    {
                        if (control is ComboBox cb)
                        {
                            if (cb.SelectedIndex >= 0)
                            {
                                string selectedSymbol = cb.SelectedItem.ToString();
                                // 将符号转换为对应的文本值
                                string textValue = symbolToTextMap[selectedSymbol];
                                property.SetValue(data, textValue);
                            }
                        }
                        else if (control is TextBox tb)
                        {
                            property.SetValue(data, tb.Text);
                        }
                    }
                }
            }

            // 3. 处理未映射的字符串属性（避免null）
            var properties = typeof(DJDataModel).GetProperties()
                .Where(p => p.PropertyType == typeof(string));
            foreach (var prop in properties)
            {
                if (prop.GetValue(data) == null)
                    prop.SetValue(data, string.Empty);
            }

            // 保存数据
            bts.InsertDJ(data);
            MessageBox.Show("保存成功");
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        //保存按钮
        //private void button2_Click(object sender, EventArgs e)
        //{
        //    // 获取点检类型
        //    string checkType = comboBox23.SelectedItem?.ToString();
        //    // 验证每日点检项
        //    var dailyCheckControls = new List<Control>
        //    {
        //    comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6, comboBox7,
        //    comboBox8, comboBox9, comboBox10, comboBox11, comboBox12, comboBox13,
        //    comboBox14, comboBox15, comboBox16,
        //    textBox1, textBox2
        //    };
        //    var dailyCheckControls1 = new List<Control>
        //    {
        //    comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6, comboBox7,
        //    comboBox8, comboBox9, comboBox10, comboBox11, comboBox12, comboBox13,
        //    comboBox14, comboBox15, comboBox16,comboBox17, comboBox18, comboBox19,
        //    comboBox20, comboBox21, comboBox22,comboBox23,
        //    textBox1, textBox2,textBox3, textBox4
        //    };
        //    var weeklyCheckControls = new List<Control>
        //    {
        //     comboBox17, comboBox18, comboBox19
        //    };
        //    var monthlyCheckControls = new List<Control>
        //    {
        //    comboBox20, comboBox21, comboBox22,
        //    textBox3, textBox4
        //    };
        //    // 根据点检类型确定需要验证的控件
        //    List<Control> controlsToValidate = new List<Control>(dailyCheckControls);

        //    if (checkType == "周")
        //    {
        //        controlsToValidate.AddRange(weeklyCheckControls);
        //    }
        //    else if (checkType == "月")
        //    {
        //        controlsToValidate.AddRange(weeklyCheckControls);
        //        controlsToValidate.AddRange(monthlyCheckControls);
        //    }
        //    foreach (var control in controlsToValidate)
        //    {
        //        if (control is ComboBox cb && cb.SelectedIndex == 0)
        //        {
        //            MessageBox.Show("请填写当前所需的点检项");
        //            return;
        //        }
        //        else if (control is TextBox tb && string.IsNullOrWhiteSpace(tb.Text))
        //        {
        //            MessageBox.Show("请填写当前所需的点检项");
        //            return;
        //        }
        //    }
        //    var data = new DJDataModel();
        //    data.MachineId = MachindNo;
        //    // 1. 设置当前时间
        //    data.GetTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    data.DJDate = DateTime.Now.ToString("yyyy-MM-dd");
        //    data.DJType = checkType;
        //    //// 2. 遍历控件并赋值给模型
        //    //foreach (var control in dailyCheckControls1)
        //    //{
        //    //    if (controlToPropertyMap.TryGetValue(control, out string propertyName))
        //    //    {
        //    //        var property = typeof(DJDataModel).GetProperty(propertyName);
        //    //        if (property != null)
        //    //        {
        //    //            if (control is ComboBox cb)
        //    //            {
        //    //                // 如果是"请选择"则不赋值
        //    //                if (cb.SelectedIndex > 0) // 0是"请选择"，>0表示有实际选择
        //    //                {
        //    //                    property.SetValue(data, cb.SelectedItem?.ToString());
        //    //                }
        //    //            }
        //    //            else if (control is TextBox tb)
        //    //            {
        //    //                property.SetValue(data, tb.Text);
        //    //            }
        //    //        }
        //    //    }
        //    //}
        //    // 2. 遍历控件并赋值给模型
        //    foreach (var control in dailyCheckControls1)
        //    {
        //        if (controlToPropertyMap.TryGetValue(control, out string propertyName))
        //        {
        //            var property = typeof(DJDataModel).GetProperty(propertyName);
        //            if (property != null)
        //            {
        //                if (control is ComboBox cb)
        //                {
        //                    if (cb.SelectedIndex > 0)
        //                    {
        //                        string selectedSymbol = cb.SelectedItem.ToString();
        //                        // 将符号转换为对应的文本值
        //                        string textValue = symbolToTextMap[selectedSymbol];
        //                        property.SetValue(data, textValue);
        //                    }
        //                }
        //                else if (control is TextBox tb)
        //                {
        //                    property.SetValue(data, tb.Text);
        //                }
        //            }
        //        }
        //    }
        //    // 3. 处理未映射的字符串属性（避免null）
        //    var properties = typeof(DJDataModel).GetProperties()
        //        .Where(p => p.PropertyType == typeof(string));
        //    foreach (var prop in properties)
        //    {
        //        if (prop.GetValue(data) == null)
        //            prop.SetValue(data, string.Empty);
        //    }

        //    // 保存数据
        //    bts.InsertDJ(data);
        //    MessageBox.Show("保存成功");
        //    this.DialogResult = DialogResult.OK;
        //    this.Close();
        //}

        private void textBox4_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label8_Click(object sender, EventArgs e)
        {

        }

        private void label15_Click(object sender, EventArgs e)
        {

        }

        private void label16_Click(object sender, EventArgs e)
        {

        }

        private void comboBox22_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label17_Click(object sender, EventArgs e)
        {

        }

        private void comboBox21_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label18_Click(object sender, EventArgs e)
        {

        }

        private void comboBox20_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label19_Click(object sender, EventArgs e)
        {

        }

        private void comboBox19_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label20_Click(object sender, EventArgs e)
        {

        }

        private void comboBox18_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label21_Click(object sender, EventArgs e)
        {

        }

        private void comboBox17_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label22_Click(object sender, EventArgs e)
        {

        }

        private void comboBox16_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label23_Click(object sender, EventArgs e)
        {

        }

        private void comboBox15_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label24_Click(object sender, EventArgs e)
        {

        }

        private void label25_Click(object sender, EventArgs e)
        {

        }

        private void comboBox14_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label26_Click(object sender, EventArgs e)
        {

        }

        private void comboBox13_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label9_Click(object sender, EventArgs e)
        {

        }

        private void comboBox12_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label10_Click(object sender, EventArgs e)
        {

        }

        private void comboBox11_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label11_Click(object sender, EventArgs e)
        {

        }

        private void comboBox10_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label12_Click(object sender, EventArgs e)
        {

        }

        private void comboBox9_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label13_Click(object sender, EventArgs e)
        {

        }

        private void comboBox8_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label14_Click(object sender, EventArgs e)
        {

        }

        private void comboBox7_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label6_Click(object sender, EventArgs e)
        {

        }

        private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label5_Click(object sender, EventArgs e)
        {

        }

        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
